var base_url = '<?php echo base64_decode($_GET['base_url']);?>';
<?php 
$link = '../../../../application/language/'.$_GET['lang'].'/default_lang.php';
include $link;?>
var options = {
		lang: '<?php echo $_GET['lang'];?>',
		errorMessages: {
	<?php echo $_GET['lang'];?>: {
				'required':   '<?php echo $lang['default_this_field_is_required'];?>',
				'email':      '<?php echo $lang['default_invalid_email'];?>'
			}
		}
	};
/* Setting for slider nivo */

$(window).load(function() {
        $('#slider').nivoSlider({
		animSpeed:800, // Slide transition speed
        pauseTime:3000 // How long each slide will show
		});
    });
/* Setting for slider news */

$(document).ready(function(){
	$("#form1").bValidator(options);
	$('#slides1').bxSlider({
		prev_image: base_url+'public/skin/front-end/images/icon_previus.png',
		next_image: base_url+'public/skin/front-end/images/icon_next.png',
		wrapper_class: 'slides1_wrap',
		auto: true,
		auto_controls: false,
		pager:false
	});
});
/* Setting for pager */
/*
$(document).ready(function() {
$("#pager").pager({ pagenumber: 1, pagecount: 25, buttonClickCallback: PageClick });
});
*/
PageClick = function(pageclickednumber) {
$("#pager").pager({ pagenumber: pageclickednumber, pagecount: 25, buttonClickCallback: PageClick });
$("#result").html("Clicked Page " + pageclickednumber);
}